package sd.czw.com.mmgapp.mcallback;


import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;
import okhttp3.Response;
import sd.czw.com.mmgapp.model.shouyebean.HomeInfo;

public abstract class MyHomeCallback extends Callback<HomeInfo> {

    @Override
    public HomeInfo parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        HomeInfo homeInfo = new Gson().fromJson(string, HomeInfo.class);
        return homeInfo;
    }
}
